using System.Collections.Generic;

namespace Terra.Core.Common.Models.Common;

/// <summary>
/// 树节点基类
/// </summary>
public interface ITreeNodeDto
{
    /// <summary>
    /// 节点ID
    /// </summary>
    public Guid Id { get; set; }

    /// <summary>
    /// 节点名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 父节点ID
    /// </summary>
    public Guid? ParentId { get; set; }

    /// <summary>
    /// 排序号
    /// </summary>
    public int Sort { get; set; }

    /// <summary>
    /// 层级
    /// </summary>
    public int Level { get; set; }

    /// <summary>
    /// 是否为叶子节点
    /// </summary>
    public bool IsLeaf { get; set; }


    /// <summary>
    /// 附加数据
    /// </summary>
    public object Data { get; set; }
}